package com.scut.miaosha.redis;

import com.scut.miaosha.domain.MiaoshaUser;

public class MiaoshaUserKey  extends BasePrefix{

    public static final int TOKEN_EXPIRE = 3600 * 24 * 2;

    private MiaoshaUserKey(String prefix)
    {
        super(prefix);
    }

    private MiaoshaUserKey(int expireSeconds, String prefix) {
        super(expireSeconds, prefix);
    }

    public static MiaoshaUserKey token = new MiaoshaUserKey(TOKEN_EXPIRE,"tk");

    public static MiaoshaUserKey getById = new MiaoshaUserKey(0,"id");

    public static MiaoshaUserKey getByNickName = new MiaoshaUserKey(0, "nickName");


}
